package com.imooc.spring.ioc.class013;

import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.ComponentScan;
import org.springframework.context.annotation.Configuration;

@Configuration
//@ComponentScan(value = "com.imooc.spring.ioc.class013")
public class MyConfiguration {
    /*
    @Bean(value = "bean2")
    public Bean1 bean1() {
        return new Bean1();
    }
    */
    @Bean(value = {"bean2","bean3"})
    public Bean1 bean1() {
        return new Bean1();
    }
}
